package com.gxa.mapper;

import com.gxa.common.PageRecv;
import com.gxa.pojo.Customer_Pool;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: erp
 * @description: 客户公海mapper层
 * @author: LC
 * @create: 2021-12-08 09:18
 */
public interface CustomerPoolMapper {
    int insertCustomerPool(Customer_Pool customer_pool);

    int updateCustomerPool(Customer_Pool customer_pool);

    int delCustomerPoolById(Integer cp_id);

    Customer_Pool selectCsutomerPool(Customer_Pool customer_pool);

    int delCustomerPoolByCustomerId(List<Integer> customerIds);

    List<Customer_Pool> selectByDefaultAndFail(PageRecv<Customer_Pool> pageRecv);

    List<Customer_Pool> selectByApplying(PageRecv<Customer_Pool> pageRecv);

    Integer selectCustomerPoolCount(Customer_Pool customer_pool);

    Integer selectCountByApplying();

    Integer selectCountByDefaultAndFail();

    Customer_Pool selectEmployeeByCpId(@Param("cpId") Integer cpId);
}